<?php
include_once(dirname(__FILE__)."/../inc/common.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>记账</title>
	    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="pragma" content="no-cache"/>
		<meta http-equiv="cache-control" content="no-cache"/>
		<meta http-equiv="expires" content="0"/>

		<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen, projection"/>

		<script language="javascript">var ctx='../';</script>
		<script type='text/javascript' src='../components/chart/swfobject.js'></script>
		<script type='text/javascript' src='../js/highcharts.js'></script>
		<script language="JavaScript" src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>
		<script language="JavaScript" type="text/javascript" src="../components/lhgdialog/lhgdialog.min.js"></script>
		<script language="JavaScript" src="../js/jquery.form.js" type="text/javascript"></script>
	    <SCRIPT language="JavaScript" src="../js/dateSpan.js" type="text/javascript" ></SCRIPT>
		<script language="JavaScript" src="../js/validation.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/calc.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/function.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/page.js"	type="text/javascript"></script>
		<script language="JavaScript" type="text/javascript" src="../components/My97DatePicker/WdatePicker.js"></script>

		<script type="text/javascript" src="../js/ajaxupload.js"></script>
		<script type="text/javascript" src="../js/avatarupload.js"></script>
		<script type="text/javascript" src="../js/jquery.jeditable.mini.js"></script>

		<script language="JavaScript" src="../js/modules/global.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/modules/tally.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/modules/planning.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/modules/report.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/modules/setting.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/modules/arap.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/modules/invest.js"	type="text/javascript"></script>
		<script language="JavaScript" src="../js/modules/main.js"	type="text/javascript"></script>
	</head>
	<body>
		<div class="container_wrapper">
			 	<div id="sys_loading"><img align="absmiddle" src='../images/common/loading2.gif'/> 数据加载中...</div>
				<div id="sys_popmsg"></div>
				<div class="container">

					<div class="header">

	     <!--begin: header部分 -->
		      <div class="product_name">记账</div>
		      <div class="weather">


		      </div>
		      <div class="top_bar">
		          <div class="top_bar_content">

			         <ul>
				         <li class="user_name_left"></li>
                         <li class="user_name" title="用户名">
				         	欢迎您:<?php echo $userInfo["username"]?>
				         	<span class="gap">|</span>
				         </li>
				         <li class="quit_menu">
							<a href="../logout.php">退出</a>
				         </li>
				         <li class="user_name_right"></li>
			         </ul>



			      </div>
		      </div>


		      <div class="nav">

		          <ul class="items">
					  <li class=active><a href="index.php" ><span>记&nbsp;&nbsp;账</span></a></li>
					  <li><a href="/report" ><span>分&nbsp;&nbsp;析</span></a></li>

		             <li id="header_setting" class=><a href="../setting/index.php?subModule=Account"><span>设&nbsp;&nbsp;置</span></a></li>
				 </ul>

		      </div>


		      <div class="sys_tool_bar">
		      	 	 <div class="info_left">
		 			   <ul>
		 			     <li class="date"><?php echo $now_date?>
					   	 </li>
		 			   </ul>
   					</div>

   				<div class="info_right" style="display:none;">
					   <span onmouseover="CM.pullDown(this);" onmouseout="CM.pullDown(this);" style="cursor: pointer;position: relative;"><img src="../images/icons/pifu.gif"/>
					   	换肤
				       <div id="quick_menu" class="quick_menu menu" style="top: 24px;left: 0px;">

							<dt onclick="Skin.doChange('1','系统默认');">
							<img alt="" src="../images/default/eg.jpg" height="20px;" width="25px;">系统默认
							(当前皮肤)
							</dt>

							<dt onclick="Skin.doChange('2','橙色');">
							<img alt="" src="../images/orange/eg.jpg" height="20px;" width="25px;">橙色

							</dt>

							<dt onclick="Skin.doChange('3','灰色');">
							<img alt="" src="../images/gray/eg.jpg" height="20px;" width="25px;">灰色

							</dt>

						<dt class="center">点击即可应用该皮肤</dt>

	   					</div>
	   					<iframe src="" scrolling="no" style="width:170px;height:500px;display:none;position:absolute; z-index:19710; left: 132px;top: 22px;filter:alpha(opacity='0');">
						</iframe>
   					</span>
			  </div>


		      </div>
		 <!--end: header部分 -->

<script type="text/javascript">
<!--
	$(document).ready(function(){
		CM.initPullDown($('li.user_message'));

		Club.getUserMessage();


	});
//-->
</script>


		            </div>

					<!-- end:header ---------------------------------------------->
					<!--begin:mbody---------------------------------------------->
					<div style="position: relative;">
					    <table id="mainframe" cellspacing="0" cellpadding="0">
					    <tr>
					    <td id="mleft" class="extend">
							<!--begin:tree---------------------------------------------->

							<div id="board">


							</div>

							<!-- end:tree ---------------------------------------------->
					    </td>
					    <td id="mbar">
					        <div id="barimg" style="cursor:pointer;" class="barimg_left">
					        	<img src="../images/default/bar_left.gif"/>
					        </div>
					    </td>
					    <td id="mright">
							<!--begin:main -->
							<!-- 验证信息提示 -->
							<div class="validate" id="validate" style="display: none;">
								<div class="validate_tip_wrapper">
									<span class="title">验证提示:</span>
									<span class="validate_content"></span>
								</div>
							</div>
							<div class="tip_wrapper" style="display:none">
								<a class="colse_btn" onclick="Help.goClose();" href="#" align="absmiddle"><img src="../images/icons/icon_close.gif"/></a>
								<span class="title">提示:</span>
								<span class="tip_content"></span>
							</div>

							<div id="main">

							</div>
							<!--end:main -->
					    </td>
					    </tr>
					    </table>
					</div>
				    <!--end:mbody ---------------------------------------------->

		            <!-- begin:footer ---------------------------------------------->
		            <div class="footer">

    <div class="footer_content">
		<span class="corp_info">(适合分辨率1024*768以上) @CopyRight 2013 记账</span>
		</div>
    <div class="clear"></div>

		</div>



		            </div>
		            <!-- end:footer ---------------------------------------------->
				</div>
	</div>
	</body>
</html>

<SCRIPT LANGUAGE="JavaScript">
<!--
$(document).ready(function(){
       CM.init();  //全局初始化
       var not_init='';
       if (not_init=='1'){
           Init.goInit(); //账本不存在，初始化账本
       }else{
			Validate.loadValidateInfo();
			doPrepare();
			//CM.loadToolBar();
			//每隔15分钟取一次系统广播.兼作session保持机制.
	   		window.setInterval("Message.getBroadcast();",1000*60*15);  //每隔15分钟取一次系统广播.兼作session保持机制.
	   		//Message.getBroadcast();
 	   }

});

//-->
</SCRIPT>



<SCRIPT LANGUAGE="JavaScript">

function doPrepare(){
	var show_bulletin='';
	if(show_bulletin=='1'){
		Init.showBulletin();
	}
	$('#board').html(LOADING);
    $('#main').html(LOADING);
	Tally.init();
}

//-->
</SCRIPT>
